package com.example.douyin.friends;

import androidx.lifecycle.MutableLiveData;

import com.example.lib_base_mvvm.baseMVVM.BaseViewModel.BaseViewModel;

import java.util.List;

public class FriendsViewModel extends BaseViewModel<FriendsRepo> {
    @Override
    protected FriendsRepo createRepo() {
        return new FriendsRepo();
    }
    public MutableLiveData<List<String>> success = new MutableLiveData<>();
    public  MutableLiveData<String> fail = new MutableLiveData<>();
    public void friends(){
        repo.friends(success,fail);
    }

    public  MutableLiveData<String> addSuccess = new MutableLiveData<>();
    public  MutableLiveData<String> addFail = new MutableLiveData<>();

    public void addFriend(String name,String reason){
        repo.addFriend(name,reason,addSuccess,addFail);
    }

}
